package com.heima.schedule.service;

import com.heima.model.schedule.dtos.Task;

/**
 * @author brianxia
 * @version 1.0
 * @date 2022-09-29 11:33
 */
public interface TaskService {
    public long addTask(Task task);

    public void cancelTask(long taskId);

    public Task poll(Integer type,Integer priority);

    public void syncZsetToList();
}
